package StudyCode.summary.Basic.mystring;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringCompare {
	public static void main(String[] args) {
		String apple = "Apple";
		String apple1 = "Apple";
		String orange = "orange";

		System.out.println(apple.equals(apple1));
		System.out.println(apple.equals(orange));
		System.out.println(apple == apple1);
		System.out.println(apple == orange);
		System.out.println(apple.compareTo(apple1));
		System.out.println(apple.compareTo(orange));
	}
}
